﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <title>题库练习</title>
    <link href="css/reset.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" type="text/css" href="css/default.css">
    <link href="//at.alicdn.com/t/font_1476090774_8365302.css" rel="stylesheet" type="text/css">
    <style>
        .ms-controller, [ms-controller] {
            display: none;
        }

        .head-kh {
            background: url(images/bg-account.jpg);
            background-size: 100% 100%;
        }

        .icon-25 {
            font-size: 2.5em;
        }

        .color1 {
            color: #FFA000;
        }

        .color2 {
            color: #0996FB;
        }

        .color3 {
            color: #FF8A55;
        }

        .color4 {
            color: #43DCBB;
        }

        .span1 {
            width: 2.3rem;
            height: 2.3rem;
            border-radius: 1000rem;
            display: inline-block;
        }
    </style>
    <script>
        //window.onload=init;
        //function init() {
        //    var plus_btn = document.getElementById("plus_btn");
        //    var module_plus = document.getElementById("module_plus")
        //    plus_btn.onclick = function () { module_plus.style.display = "block" }
        //    module_plus.onclick = function () { module_plus.style.display = "none" }
        //}
    </script>
</head>
<body ms-controller="rlzyview" style="background-color: #FFF;">
    <section class="user-kh">
        <div class="head-kh">
            <div class="kh-tx">
                <span style="border: 4px solid #f5f5f5; width: 90PX; height: 90PX;">
                    <div style="margin-top: 20px; font-size: 26px; color: white;">
                        {{wcl}}%<br />
                        <div style="font-size: 12px">
                            完成率
                        </div>

                    </div>
                </span>
            </div>
<!--            <h3 class="user-name" style="padding-bottom: 0.6rem;">20/100</h3>-->
            <!-- <h4 class="user-zh">18709836782</h4> -->
            <div class="msg-kh" style="    margin-top: 10px;">
                <ul class="clearfix user-msg">
                    <li ms-click="openTab('/View_Mobile/UI/RLZY/list.html?type=1')">
                        <a href="javascript:void(0);">
                            <i> {{YLX}}/{{zs}}</i>
                            <span>已练习</span>
                        </a>
                    </li>
                    <li class="bk" ms-click="openTab('/View_Mobile/UI/RLZY/list.html?type=2')">
                        <a href="javascript:void(0);">
                            <i> {{SCS}}</i>
                            <span>收藏数</span>
                        </a>
                    </li>
                    <li ms-click="openTab('/View_Mobile/UI/RLZY/list.html?type=3')">
                        <a href="javascript:void(0);">
                            <i> {{CWS}}</i>
                            <span>错误数</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </section>
    <div class="fun-crm">
        <ul class="block_nav clearfix">
            <li>
                <a ms-attr-href="'TKLX.html?v=2&ID='+tkid">
                    <i class=""><b class="iconfont icon-ccxj icon-25 color2"></b></i>
                    <span>客观题练习</span>
                </a>
            </li>
            <li>
                <a ms-attr-href="'TKLX_SC.html?ID='+tkid">
                    <i class=""><b class="iconfont icon-kqgl icon-25 color4"></b></i>
                    <span>查看收藏</span>
                </a>
            </li>

            <li>
                <a  ms-attr-href="'TKLX_CT.html?ID='+tkid">
                    <i class=""><b class="iconfont icon-kaoqin icon-25 color2"></b></i>
                    <span>查看错题</span>
                </a>
            </li>
            <li>
                <a  ms-attr-href="'TKLX_ZGT.html?ID='+tkid">
                    <i class=""><b class="iconfont icon-kqgl icon-25 color1"></b></i>
                    <span>主观题浏览</span>
                </a>
            </li>
            <li ms-click="czlx()">
                <a>
                    <i class=""><b class="iconfont icon-kqgl icon-25 color1"></b></i>
                    <span>重置练习</span>
                </a>
            </li>



            <li></li>

        </ul>

<!--        <input type="text" id="ceshi" value=" "  placeholder="输入字符串" style="width:100%"/>-->
    </div>
    <!-- 加号 -->
    <!--<span id="plus_btn"><img src="images/plus_icon.png" height="188" width="188" alt="" style=""></span>-->
    <!--<div class="module_plus" id="module_plus">
        <div class="mod-mask"></div>
        <div class="mod-body">
            <ul>
                <li>
                    <a ms-click="openTab('/View_Mobile/UI/KQQD.html')" href="javascript:void(0)" class="mod-li-icon"><img src="images/c-kh.png" height="188" width="188" alt=""></a>
                    <div ms-click="openTab('/View_Mobile/UI/KQQD.html')" class="mod-li-tip">考勤签到</div>
                </li>
                <li>
                    <a ms-click="openTab('/View_Mobile/BASE/APP_MOBIL_WF.html?FormCode=WQQD')" href="javascript:void(0)" class="mod-li-icon"><img src="images/c-lxr.png" height="188" width="188" alt=""></a>
                    <div ms-click="openTab('/View_Mobile/BASE/APP_MOBIL_WF.html?FormCode=WQQD')" class="mod-li-tip">外勤签到</div>
                </li>
                <li>
                    <a ms-click="openTab('/View_Mobile/BASE/APP_MOBIL_WF.html?FormCode=CCXJ')" href="javascript:void(0)" class="mod-li-icon"><img src="images/c-ht.png" height="188" width="188" alt=""></a>
                    <div ms-click="openTab('/View_Mobile/BASE/APP_MOBIL_WF.html?FormCode=CCXJ')" class="mod-li-tip">新增出差休假</div>
                </li>


            </ul>

        </div>
    </div>-->
        <script src="/View_Mobile/JS/layer/layer.m.js"></script>
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script src="/View_Mobile/JS/avalon1.47.js"></script>
    <script src="/View_Mobile/JS/ComFunJS.js?jsver=20160425"></script>
    <script type="text/javascript">
        var model = avalon.define({
            $id: "rlzyview",
            wxopenid:"",
            tkid: "0",
            zs: "0",
            YLX: "0",
            CWS: "0",
            SCS: "0",
            wcl: "0",
            czlx: function () {
                ComFunJS.winconfirm("重置后会清楚您得练习记录,您确认要重置此题库得练习?", function () {
                    $.getJSON("/API/VIEWAPI.ashx?Action=TKGL_CZLX", { wxopenid: model.wxopenid, P1: model.tkid, P2: $("#ceshi").val() }, function (r) {
                        if (r.ErrorMsg == "") {
                            $("#ceshi").val(r.Result)
                            model.YLX =0;
                            model.CWS = 0;
                            model.wcl = 0;
                            ComFunJS.winsuccess("操作成功")
                        }
                    })
                }, function () {

                })
          
            }

        })

        avalon.ready(function () {
            model.tkid = ComFunJS.getQueryString("ID");
            model.wxopenid = ComFunJS.getQueryString("wxopenid");
            ComFunJS.setCookie("wxopenid", model.wxopenid);
            $.getJSON("/API/VIEWAPI.ashx?Action=TKGL_GETTKLXINDEX", { wxopenid: model.wxopenid, P1: model.tkid, P2: "" }, function (r) {
                if (r.ErrorMsg == "") {
                    model.zs = r.Result;
                    model.YLX = r.Result1;
                    model.CWS = r.Result2;
                    model.SCS = r.Result3;
                    model.wcl = r.Result4;

                }
            })

        })

    </script>


</body>
</html>
